<!DOCTYPE html>

<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>宽带组 : 实验室成员</title>

  <link href="../../css/bootstrapmin.css" rel="stylesheet" media="screen">
  <link href="../../css/style.css" rel="stylesheet">
 



  
</head>

<?php
require("header.php");
?><!-- end of header -->

<div id= "achievement">
<?php
	require("../../DBops.php");
	session_start();
	$con = connect("localhost", "root", "", "lab");
	$result = query($con, "*", "personalinfo", "ID", $_SESSION['user']);
	$row = mysql_fetch_array($result);
	
	
	if(isset($_SESSION['user']))
	{
		echo "<div style='height:30px;background:#A4D3EE;'>
		      
              <p  style='margin-right:10px;float:right;'>登录为: <a href = \"../../infor.php?id=".$_SESSION['user']."\">".$_SESSION['user']."</a></font>&nbsp&nbsp
			  <a  onclick=\"if(confirm('确定要退出系统吗?')){parent.location.href ='../../logout.php'}\" href=\"javascript:void(0)\">退出</a></font></p></div>";
	}
	

echo "<div id= \"achievement\" style=\"height:500px;\">

<div style=\"width:560px;height:500px;margin-left:25px;z-index:10px;backgroud-color:pink;\">
    
	   <br/><br/>
<form action=\"saveWR.php?type=edit\"  method=\"post\" name=\"\" >";
	
	
	$result = query($con, "*", "weeklyreport", "ID", $_SESSION['user']);
	$r = mysql_fetch_array($result);
	
	while(true)
	{
		$row = $r;
		$r = mysql_fetch_array($result);
		
		if(!$r)
		{
			break;
		}
	}
	
		echo "<p><strong>已完成工作:</strong></p>
	<!--	<textarea name=\"havadone\" cols=\"45\" rows=\"1\" readonly=\"true\" style=\"width:150px;\">已完成工作:</textarea><br/>-->
	
		<textarea name=\"havedonevalue\" cols=\"90\" rows=\"4\" wrap=\"physical\" style=\"width:500px;\" >".$row['completed']."</textarea>
		<p><strong>未完成工作:</strong></p>
		<textarea name=\"notyetvalue\" cols=\"90\" rows=\"4\" wrap=\"physical\" style=\"width:500px;\" >".$row['uncompleted']."</textarea>
		<p><strong>工作计划:</strong></p>		
		<textarea name=\"plan\" cols=\"90\" rows=\"4\" wrap=\"physical\" style=\"width:500px;\" >".$row['plan']."</textarea><br/>";
		
?>
	
	<input type="submit" value="提交"><br/>



	
<br/>
</form>
</div>
</div>
</body>

</html>